package com.demo.mybatis_plus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.demo.mybatis_plus.dto.GoodsSearchParam;
import com.demo.mybatis_plus.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    // 分页的参数必须是第一个
    public IPage<Goods> query(IPage<Goods> page,
                              @Param("title") String title,
                              @Param("minPrice") Integer minPrice,
                              @Param("maxPrice") Integer maxPrice);
}
